package com.ncr.travel.appmgr.model;

import java.util.List;

import com.ncr.travel.appmgr.model.shared.AuditField;
import com.ncr.travel.appmgr.model.shared.StationsAuditCriteriaData;

public class StationsAuditCriteriaDataJson implements StationsAuditCriteriaData {
	public boolean allStations;
	public List<AuditField> stations;
	public String auditCriteriaType;

	public StationsAuditCriteriaDataJson() {
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (allStations ? 1231 : 1237);
		result = prime * result + ((auditCriteriaType == null) ? 0 : auditCriteriaType.hashCode());
		result = prime * result + ((stations == null) ? 0 : stations.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StationsAuditCriteriaDataJson other = (StationsAuditCriteriaDataJson) obj;
		if (allStations != other.allStations)
			return false;
		if (auditCriteriaType == null) {
			if (other.auditCriteriaType != null)
				return false;
		} else if (!auditCriteriaType.equals(other.auditCriteriaType))
			return false;
		if (stations == null) {
			if (other.stations != null)
				return false;
		} else if (!stations.equals(other.stations))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "StationsAuditCriteriaDataJson [allStations=" + allStations + ", stations=" + stations + ", auditCriteriaType=" + auditCriteriaType + "]";
	}

}